pacman::p_load(tidyverse, ggplot2, gganimate, plotly, ggiraph, DT)Take-Home_Ex04: Rain, Hail or Shine: Unveiling Mysteries of the Sky
Working Document for Project Work
1 Overview
In this take home exercise, we will
2 Data Preparation
2.1 Loading R Packages
In this take home exercise, the following R packages will be used:
The code chunk used is as follows:
2.2 Importing Temperature Data
Changi will be selected for the weather station, and temperature chosen as the factor to be analysed. The data sets will be downloaded from historical daily temperature from Meteorological Service Singapore website,
Lastly, using the code chunk below, we will combine the five datasets into a single document, and save it as a new dataset.
Next, we will call the dataset “combinedTemp” into the environment.
data <- read_csv("data/daily_historical.csv")2.3 Summary Statistics of Data
Using DT, we will display the dataset as a interactive table on html page.
DT::datatable(data, class = "display compact", style = "bootstrap5")